<include file="public:head" />

  <!-- 二级页次级导航 -->
<include file="public:sep" />
<!-- 二级页次级导航结束 -->



      <div class="layui-container search_word" >
          <div class="fly-panel-title fly-filter" style="border-bottom:0;"> 搜索<span>“{$searchword}”</span>的相关结果 </div>
          
       
      </div>


<!-- 主体开始 -->
<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md9">

      <div class="fly-panel" style="margin-bottom: 0;">
        
        <div class="fly-panel-title fly-filter">

          <form id="search" name="searchform" method="get" >
            <input type="hidden" value="{$searchword}" name="searchword" id="searchword" />
            <input type="hidden" value="{$search.time}" name="time" id="time" />
            <input type="hidden" value="{$search.score}" name="score" id="score" />
            <input type="hidden" name="g" value="home" />
            <input type="hidden" name="m" value="search" />
            <input type="hidden" name="a" value="index" />
            
            <a href="javascript:void(0)"   onclick="formsub(0,'time')" <if condition="$search.time eq 0">class="layui-this"</if> >不限 <if condition="$search.time eq 0"><i class="layui-icon">&#xe61a;</i></if></a>  
            <a href="javascript:void(0)"   onclick="formsub(1,'time')" <if condition="$search.time eq 1">class="layui-this"</if> >24小时内  <if condition="$search.time eq 1"><i class="layui-icon">&#xe61a;</i></if></a> 
            <a href="javascript:void(0)"   onclick="formsub(3,'time')" <if condition="$search.time eq 3">class="layui-this"</if> >三天内 <if condition="$search.time eq 3"><i class="layui-icon">&#xe61a;</i></if></a> 
            <a href="javascript:void(0)"   onclick="formsub(30,'time')" <if condition="$search.time eq 30">class="layui-this"</if> >一个月内 <if condition="$search.time eq 30"><i class="layui-icon">&#xe61a;</i></if></a> 
            <a href="javascript:void(0)"   onclick="formsub(0,'score')" <if condition="$search.score eq 0">class="layui-this"</if> >免费 <if condition="$search.score eq 0"><i class="layui-icon">&#xe61a;</i></if></a> 
            <a href="javascript:void(0)"   onclick="formsub(2,'score')" <if condition="$search.score GT 0">class="layui-this"</if> >需积分 <if condition="$search.score GT 0"><i class="layui-icon">&#xe61a;</i></if></a>  
            
            </form>

 
        </div>

        <ul class="fly-list">   

          <wkcms:doc type="lists" order="add_time desc" pagenum="20" ext="$ext" maxscore="$maxscore" day="$day" minscore="$minscore" search="$searchword">
          <empty name="data['list']">
          <div class="fly-none" style="min-height: 800px;">找不到 “ {$searchword} ” 的相关结果</div>
          </empty>
          <volist name="data['list']" id="vo">
          <li>
            <a href="{:U('doc/doccon',array('id'=>$vo['id']))}" class="fly-avatar"><img src="{:docimg($vo['model'],$vo['id'])}" alt="{$vo.title}"></a>
            <h2 class="mleft10"><a href="{:U('doc/doccon',array('id'=>$vo['id']))}"><i class="ic ic-{$vo.ext|strtolower}"></i>{$vo.title|getsearchtitle=$searchword,###}</a></h2>
            <div class="fly-list-info mleft10 ">
              <p class="intro">{$vo.intro}</p>
              <span>贡献者：<a href="{:U('member/mydoclist',array('uid'=>$vo['uid']))}">{$vo.uid|getusername}</a> </span>
              <span>时间：{$vo.add_time|fdate}</span>
              <span>浏览：{$vo.hits}</span>
              <span>下载：{$vo.downnum}</span>
              <span class="fly-list-nums"><for start="0" end="$vo.raty" name="i">★</for></span>
            </div>
            <div class="fly-list-badge">
              <span class="layui-badge jifen"><if condition="$vo.score eq 0">免费<else />{$vo.score}{:C('wkcms_score_name')}</if></span>
              <!-- <span class="layui-badge zhiding">置顶</span> -->
              <if condition="$vo.status eq 4"><span class="layui-badge jinghua">精华</span></if>
            </div>
          </li>
          </volist>
          </wkcms:doc>

        </ul>
        <div style="text-align: center">
          <div class="laypage-main">{$data['page']}</div>
        </div>

      </div>
    </div>
    <div class="layui-col-md3">
      <!-- 右侧分类 -->
      <div class="fly-panel">
          <ul class="layui-nav layui-nav-tree layui-bg-cyan layui-inline" lay-filter="demo">
            <volist name="cate" id="vo">
              <li class="layui-nav-item layui-nav-itemed">
                <a href="javascript:;">{$vo.name}</a>
                <dl class="layui-nav-child">
                  <volist name="vo.tcate" id="vo1">
                  <dd <if condition="$vo1.id eq $id">class="layui-this"</if>><a href="{:U('doc/doclist',array('id'=>$vo1['id']))}">{$vo1.name}<span class="layui-badge layui-bg-gray doclittag">{$vo1.id|catecount}</span></a></dd>
                  </volist>
                </dl>
              </li>
            </volist>
          </ul>
      </div>
      <!-- 右侧分类结束 -->
      
      <dl class="fly-panel fly-list-one">
        <dt class="fly-panel-title">编辑推荐</dt>
        <wkcms:doc type="lists" status="4"  order="add_time desc" >
        <empty name="data['list']">
            <div class="fly-none">没有相关数据</div>
        </empty>
        <volist name="data['list']" id="vo" offset="0" length="10">
        <dd>
          <a href="{:U('doc/doccon',array('id'=>$vo['id']))}"><i class="ic ic-{$vo.ext|strtolower}"></i> {$vo.title} </a>
          <span><i class="iconfont icon-liulanyanjing"></i>&nbsp;{$vo.hits}</span>
        </dd>
        </volist>
        </wkcms:doc>
      </dl>

    </div>
  </div>

</div>
<!-- 主体结束 -->
<include file="public:footer" />
<script src="__PUBLIC__/theme/blueideal/mods/jquery.min.js"></script> 
<script>
function formsub(val,type){

  if(type=='score'){
    $('#score').val(val);

  
  }else if(type=='time'){
    $('#time').val(val);
    
  }

$('#search').submit();

  
}

 
</script>  
<script>
layui.config({
  version: "3.0.0"
  ,base: '__PUBLIC__/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
}).extend({
  fly: 'index'
}).use('fly');
</script>